package org.example.domain.activity_manage.repository;

import org.example.domain.activity_manage.model.entity.PrizeEntity;

import java.util.List;

/**
 * @author lxc18
 * @date 2025/3/18 10:38
 * @description IPrizeRepo
 */
public interface IPrizeRepo {
    boolean createPrize(PrizeEntity prizeEntity);
    boolean deletePrize(Long prizeId);
    boolean updatePrize(PrizeEntity prizeEntity);
    List<PrizeEntity> queryPrizeByName(String prizeName);
    //根据id查询奖品
    PrizeEntity queryPrizeById(Long prizeId);
    List<PrizeEntity> queryPrizeByPage(int pageNum, int pageSize);
    //    修改指定奖品库存
    boolean updatePrizeStock(Long prizeId, int stock);

    //剩余库存查询
    int queryPrizeStock(Long prizeId);
    //已用库存查询
    int queryPrizeUsedStock(Long prizeId);

}
